package org.sang.mapper;

import org.apache.ibatis.annotations.*;
import org.sang.bean.DailyReport;
import org.sang.bean.User;

import java.util.Date;
import java.util.List;

public interface DailyReportMapper {

    int insert(DailyReport record);

    DailyReport selectByPrimaryKey(@Param("id") String id);

    int updateByPrimaryKeySelective(DailyReport record);

    List<DailyReport> getDailyReportByPage(@Param("start") Integer start, @Param("size") Integer size, @Param("keywords") String keywords, @Param("userId") Long userId, @Param("startBeginDate") Date startBeginDate, @Param("endBeginDate") Date endBeginDate);

    Long getCountByKeywords(@Param("keywords") String keywords, @Param("userId") Long userId, @Param("startBeginDate") Date startBeginDate, @Param("endBeginDate") Date endBeginDate);

    int delDailyReportById(@Param("ids") String[] ids);

}